package com.boarsoft.boar.common.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.boarsoft.boar.common.Constants;

@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DateStrImpl.class)
public @interface DateStr {
	String format();
	String message() default Constants.WARN_INVALID;
	Class<?>[] groups() default {};
	Class<? extends Payload>[] payload() default {};
}